package com.shanzmoo.core.auth;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 登录请求信息
 * @author: Gzhao 2020/11/8
 */
@Data
@ApiModel("登录信息")
public class LoginReq {

    @NotNull(message = "用户名不能为空")
    @ApiModelProperty(value = "登录账号", example = "15527850620", required = true)
    private String username;

    @NotNull(message = "密码不能为空")
    @ApiModelProperty(value = "密码", example = "123456", required = true)
    private String password;

    /**
     * 记住我

    private Boolean rememberMe = false;
     */
}
